//
//  TYStateProtocol.h
//  AngerDragon
//
//  Created by gaotime_macbook_2 on 11-12-11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kSpriteState_Dead (-1) /// 精灵状态机, 死亡状态

/// 状态机系统接口
@protocol TYStateSystemProtocol

@required
/// 设置状态机
- (void) setState:(NSInteger) a_n_state;

/// 获取当前状态机
- (NSInteger) getCurrentlyState;

/// 获取上一个状态机
- (NSInteger) getLastState;

/// 释放状态机接口对象
- (void) deallocMe;
@end
